import request from '@/utils/request'
// 获取菜单数据
export function meunDate() {
  return request({
    url: '/menus',
    method: 'GET'
  })
}
// 删除菜单数据
export function deleteMeun(id) {
  return request({
    url: `/menus/${id}`,
    method: 'DELETE'
  })
}
// 添加菜单
export function addMenu(data) {
  return request({
    url: '/menus',
    method: 'POST',
    data
  })
}
// 菜单详情
export function menuDetails(id) {
  return request({
    url: `/menus/${id}`,
    method: 'GET'
  })
}
// 菜单修改
export function menuModification(data) {
  return request({
    url: `/menus/${data.id}`,
    method: 'PUT',
    data
  })
}
